package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot.entity.Grade;
import com.example.springboot.entity.Logs;
import com.example.springboot.mapper.EnrollMapper;
import com.example.springboot.mapper.GradeMapper;
import com.example.springboot.mapper.LogsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 功能：
 * 作者：刘涵茹
 * 日期：2024/4/1 14:36
 */
@Service//通过注解注入spring容器
public class GradeService extends ServiceImpl<GradeMapper, Grade> {
    @Resource
    GradeMapper gradeMapper;
    public Grade getByEnrollId(Integer id) {
        return gradeMapper.getByEnrollId(id);
    }
}
